我试图在Windows 10中运行Angular项目。这是我在Ubuntu中进行的同一项目。当我克隆存储库并安装所有遇到此错误的所有节点软件包时。
错误in ./node_modules/css-loader?{“sourcemap”:false,“importloaders”:1}!lib/loader.js?{" sourcemap":false," precision":8," includepaths":[]}!./ src/scss/style.scss/style.scss模块构建失败:错误:enoent:enoent:enoent:no suke file或目录,scandir’C:\ User \ Jaaayz \ documents \ ad fingerprinting \ web \ node_modules \ node-sass \ node-sass \ vendor’在object.fs.fs.fs.readdirsync(fs.js:911:911:18)at okect.getInstallEdBINARIES(c:c:c:\ user \ userjaaayz \ documents \ ad fingerprinting \ web \ node_modules \ node-sass \ lib \ lib \ extensions.js:124:13)lib \ errors.js:20:15)在fistbinies(c:\ users \ jaaayz \ documents \ ad fingerprinting \ ad fingerprinting \ web \ node_modules \ node-sass \ node-sass \ lib \ lib \ lib \ lib \ errors.js:15:5)。指纹\ web \ node_modules \ node-sass \ lib \ binding.js:15:30)在对象上。(c:\ users \ jaaayz \ documents \ ad fingerprinting \ web \ node_modules \ node-sass \ node-sass \ lib \ lib \ index.js:14:35)at module._compile(module.js:624:30)_extensions..js(module.js:635:10)在trymoduleload(module.js:508:12)at function.module.__load(module.js:500:500:500:500:500:500:500:500:500:500:500:500:12)在Module.JS:545:32)处3)在模块上(module.js:568:17)在oppert(内部/模块:11:18)在对象上。(c:\ users \ jaaayz \ documents \ ad fingerprinting \ web \ node_modules \ sass-loader \ sass-loader \ lib \ lib \ loader.js:3:14)at module._compile(module.js:624:30) @ ./src/scss/style.scss 4:14-195 @ multi ./src/scss/style.scss
我尝试了GOOGLINE,并为此做所有事情,但没有找到任何解决方案。
node -v 8.5.0
Angular CLI version 1.4.3
感谢CalP的帮助。提前致谢。
答案
尝试这个
npm install node-sass
然后
npm run start