[英]build error came after update node modules
Error on fetch for node_modules/angular2-notifications/src/simple-notifications.module.js at file:///D:/GIP/IMAGE PILOT/gipfe/node_modules/angular2-notifications/src/simple-notifications.module.js Loading build/tmp/aot/src/app/app.module.ngfactory.js Loading build\\boot-aot.js Error: ENOENT: no such file or directory, open 'D:\\GIP\\IMAGE PILOT\\gipfe\\node_modules\\angular2-notifications\\src\\simple-notifications.module.js' [10:13:51] 'build.aot' errored after 52 s [10:13:51] Error in plugin 'run-sequence(bundle-aot)' Message: Error on fetch for node_modules/angular2-notifications/src/simple-notifications.module.js at file:///D:/GIP/IMAGE PILOT/gipfe/node_modules/angular2-notifications/src/simple-notifications.module.js Loading build/tmp/aot/src/app/app.module.ngfactory.js Loading build\\boot-aot.js ENOENT: no such file or directory, open 'D:\\GIP\\IMAGE PILOT\\gipfe\\node_modules\\angular2-notifications\\src\\simple-notifications.module.js' Details: originalErr: Error: ENOENT: no such file or directory, open 'D:\\GIP\\IMAGE PILOT\\gipfe\\node_modules\\angular2-notifications\\src\\simple-notifications.module.js' Stack: Error on fetch for node_modules/angular2-notifications/src/simple-notifications.module.js at file:///D:/GIP/IMAGE PILOT/gipfe/node_modules/angular2-notifications/src/simple-notifications.module.js Loading build/tmp/aot/src/app/app.module.ngfactory.js Loading build\\boot-aot.js Error: ENOENT: no such file or directory, open 'D:\\GIP\\IMAGE PILOT\\gipfe\\node_modules\\angular2-notifications\\src\\simple-notifications.module.js'
import { SimpleNotificationsModule } from 'angular2-notifications';
imports: [
SharedModule,
routing,
ToastModule.forRoot(),
SimpleNotificationsModule.forRoot(),
this build error came when i take build npm run build.aot command. 当我执行 build npm run build.aot命令时,出现此构建错误。 i put npm install command in my project then i try to take build error was came.
我在项目中放入了npm install命令,然后尝试生成错误。
pls help me to resolve this 请帮助我解决这个问题
thank you. 谢谢。
Before i installed typescript version 在我安装打字稿之前
"typescript": "^2.3.3" // package.json
then i changed the typescript version 然后我改变了打字稿的版本
"typescript": "2.3.3" //without cap symbol
Now,error was not came and i took build successfully 现在,错误没有出现,我成功地进行了构建
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.