简体   繁体   English

更新节点模块之后出现构建错误

[英]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.

相关问题 npm 更新 v5.4.2 后未找到 ./node_modules/react-router-dom 模块中的错误 - Error in ./node_modules/react-router-dom Modules not found after npm update v5.4.2 减少 node_modules 后 node_modules 出错 - Error with node_modules after I decreased the node_modules 更新 npm 后 node_modules 出现错误? - ERROR in node_modules after updating the npm? 将 node_modules 导入本地文件而不是在构建后从 node_modules 导入? - Import node_modules to local files instead of importing from node_modules after build? 安装节点模块错误 - Install node modules error 如何以编程方式更新节点模块 - How to update node modules programmatically 为什么node_modules在构建后仍会从Docker中消失? - Why do node_modules keep disappearing from docker after build? ./src/main.ts - 错误:模块构建失败(来自./node_modules/@angular-devkit/build-angular/node_modules/@ngtools/webpack/src/ivy/index.js): - ./src/main.ts - Error: Module build failed (from ./node_modules/@angular-devkit/build-angular/node_modules/@ngtools/webpack/src/ivy/index.js): 未捕获的错误:模块构建失败(来自./node_modules/babel-loader/lib/index.js) - Uncaught Error: Module build failed (from ./node_modules/babel-loader/lib/index.js) Webpack:出现此错误:构建失败(来自./node_modules/css-loader/dist/cjs.js): - Webpack: getting this error: build failed (from ./node_modules/css-loader/dist/cjs.js):
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM