sequence
In recent understand RSS feeds, so naturally need to see RSSHub. Think first build a Chrom extensions experience. The results old error.
Github project: https://github.com/DIYgod/RSSHub-Radar
First need down the project, and then start the operation in npm directory project (because before I used ReactNative, so the node npm are some)
When using npm run build encountered a problem is: Error: Module of Can not the Find 'the Node-Sass'
ERROR in ./src/css/options.scss (./node_modules/css-loader/dist/cjs.js??ref--4-2!./node_modules/postcss-loader/src??ref--4-3!./node_modules/sass-loader/dist/cjs.js!./src/css/options.scss)
Module build failed (from ./node_modules/sass-loader/dist/cjs.js):
Error: Cannot find module 'node-sass'
Require stack:
- /Users/yinzh/android/RSSHub-Radar-master/node_modules/sass-loader/dist/getDefaultSassImplementation.js
- /Users/yinzh/android/RSSHub-Radar-master/node_modules/sass-loader/dist/getSassImplementation.js
- /Users/yinzh/android/RSSHub-Radar-master/node_modules/sass-loader/dist/index.js
- /Users/yinzh/android/RSSHub-Radar-master/node_modules/sass-loader/dist/cjs.js
- /Users/yinzh/android/RSSHub-Radar-master/node_modules/loader-runner/lib/loadLoader.js
- /Users/yinzh/android/RSSHub-Radar-master/node_modules/loader-runner/lib/LoaderRunner.js
- /Users/yinzh/android/RSSHub-Radar-master/node_modules/webpack/lib/NormalModule.js
- /Users/yinzh/android/RSSHub-Radar-master/node_modules/webpack/lib/NormalModuleFactory.js
- /Users/yinzh/android/RSSHub-Radar-master/node_modules/webpack/lib/Compiler.js
- /Users/yinzh/android/RSSHub-Radar-master/node_modules/webpack/lib/webpack.js
- /Users/yinzh/android/RSSHub-Radar-master/node_modules/webpack-cli/bin/utils/validate-options.js
- /Users/yinzh/android/RSSHub-Radar-master/node_modules/webpack-cli/bin/utils/convert-argv.js
- /Users/yinzh/android/RSSHub-Radar-master/node_modules/webpack-cli/bin/cli.js
- /Users/yinzh/android/RSSHub-Radar-master/node_modules/webpack/bin/webpack.js
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:982:15)
at Function.Module._load (internal/modules/cjs/loader.js:864:27)
at Module.require (internal/modules/cjs/loader.js:1044:19)
at require (/Users/yinzh/android/RSSHub-Radar-master/node_modules/webpack-cli/node_modules/v8-compile-cache/v8-compile-cache.js:161:20)
at getDefaultSassImplementation (/Users/yinzh/android/RSSHub-Radar-master/node_modules/sass-loader/dist/getDefaultSassImplementation.js:24:10)
at getSassImplementation (/Users/yinzh/android/RSSHub-Radar-master/node_modules/sass-loader/dist/getSassImplementation.js:19:72)
at Object.loader (/Users/yinzh/android/RSSHub-Radar-master/node_modules/sass-loader/dist/index.js:40:61)
Solution:
1. Run the project directory cmd npm install -g cnpm --registry = https: //registry.npm.taobao.org
2. Download and then successfully run cnpm install node-sass
After the bin during npm run build on it. You can generate the dist folder.