离子错误:SPAWN EACCES

时间:2018-08-20 19:49:47

标签: node.js angular ionic-framework ionic2 ionic3

该项目是在Windows 10操作系统中创建的,我将操作系统更改为Ubuntu,从Ubuntu终端创建的新项目正在运行。

  

错误:生成EACCES

at _errnoException (util.js:1022:11)
at ChildProcess.spawn (internal/child_process.js:323:11)
at Object.exports.spawn (child_process.js:502:9)
at spawn (/usr/local/lib/node_modules/ionic/node_modules/cross-spawn/index.js:17:18)
at spawn  (/usr/local/lib/node_modules/ionic/node_modules/@ionic/cli-framework/utils/shell.js:124:12)
at ShellCommand.spawn  (/usr/local/lib/node_modules/ionic/node_modules/@ionic/cli-framework/utils/shell.js:113:16)
at Shell.spawn  (/usr/local/lib/node_modules/ionic/node_modules/@ionic/cli-utils/lib/shell.js:127:23)
at IonicAngularServeCLI.<anonymous>  (/usr/local/lib/node_modules/ionic/node_modules/@ionic/cli-utils/lib/serve.js:392:36)
at Generator.next (<anonymous>)
at fulfilled  (/usr/local/lib/node_modules/ionic/node_modules/tslib/tslib.js:104:62)

1 个答案:

答案 0 :(得分:1)

正在工作!我从项目文件夹中删除了node_modules文件夹,并从终端输入了项目

cd name 之后

npm install

非常感谢您的帮助!