找不到模块"节点的问题.js



当使用"离子服务";最近生成的应用程序上的命令我遇到错误

[ng] The system cannot find the path specified.
[ng] internal/modules/cjs/loader.js:883
[ng]   throw err;
[ng]   ^
[ng] Error: Cannot find module 'C:UsersshaneCollegeYear 2Semester 2Mobile Application DevelopmentIonic@angularclibinng'
[ng]     at Function.Module._resolveFilename (internal/modules/cjs/loader.js:880:15)
[ng]     at Function.Module._load (internal/modules/cjs/loader.js:725:27)
[ng]     at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12)
[ng]     at internal/main/run_main_module.js:17:47 {
[ng]   code: 'MODULE_NOT_FOUND',
[ng]   requireStack: []
[ng] }
[ERROR] ng has unexpectedly closed (exit code 1).

我曾多次尝试通过新的安装卸载node.js、angular/cli和cordova ionic,但似乎都不起作用。我迷失了方向

此错误表示设置环境变量
全局安装最新的npm包

npm安装npm@latest

second thing is you follow this   
Option 1: edit your Windows installation's PATH to put %appdata%npm before %ProgramFiles%nodejs.   Remember that you'll need to restart cmd.exe (and potentially restart Windows) when you make changes to PATH or how npm is installed.
Option 2: remove both of
%ProgramFiles%nodejsnpm
%ProgramFiles%nodejsnpm.cmd

相关内容

  • 没有找到相关文章

最新更新