当我在linux服务器上启动npm时,我遇到了一个问题。
它显示错误,退出代码为126,权限被拒绝。
我已经对server.js,或者更确切地说,对demoTest的整个文件夹执行了chmod 777。
我怎么解决这个问题呢?
日志如下所示。
info it worked if it ends with ok
1 verbose cli [ '/opt/node-v8.11.3-linux-x64/bin/node', '/bin/npm', 'start' ]
2 info using npm@5.6.0
3 info using node@v
我正在弹性豆茎上部署NestJs应用程序,部署成功后,应用程序没有启动,并在启动脚本时显示错误,但当我登录Amazon Linux 2 ec2实例并运行节点dist/main时,它开始运行,否则不会使用npm start。
日志:
0 info it worked if it ends with ok
1 verbose cli [
1 verbose cli '/opt/elasticbeanstalk/node-install/node-v12.19.0-linux-x64/bin/node',
1 verbose cli '/bin/npm',
1
我的应用程序运行正常。
不幸的是,现在我陷入了麻烦,即使我创建创建-反应-应用程序和运行npm start。
// Linux terminal
npm i -g create-react-app // Success
create-react-app app // Success
cd app // Success
npm start // Failed
结果命令:
Compiled successfully!
You can now view the app in the browser.
Local: http://localhost:3000
O
nikhil@nikhil-HP-2000-Notebook-PC:~$ npm start
npm ERR! Error: ENOENT, open '/home/nikhil/package.json'
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR! <http://github.com/isaacs/npm/issues>
npm ERR! System Lin
我是亚马逊网络服务的新手,我正在尝试在他们的弹性豆茎上设置一个node.js应用程序。我设置了实例并上传/部署了站点,但是当运行状况“正常”时,node.js日志显示重复了大约30次:
npm ERR! enoent ENOENT: no such file or directory, open '/var/app/current/package.json'
npm ERR! enoent This is most likely not a problem with npm itself
npm ERR! enoent and is related to npm not bei
我有一个问题: nodemon无法运行npm脚本(例如npm start),但如果在npm脚本之外的命令行上调用nodemon,nodemon将正常运行。 $ nodemon server.js
11 Feb 22:59:51 - [nodemon] v1.3.7
11 Feb 22:59:51 - [nodemon] to restart at any time, enter `rs`
11 Feb 22:59:51 - [nodemon] watching: *.*
11 Feb 22:59:51 - [nodemon] starting `node server.js` 在npm脚本中
继续获得多个错误,以安装和运行npm与鬼。我以为它可能是方形的,但似乎已经安装了。
npm ERR! ghost@0.6.4 start: `node index`
npm ERR! Exit status 127
npm ERR!
npm ERR! Failed at the ghost@0.6.4 start script.
npm ERR! This is most likely a problem with the ghost package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fai
Grpc版本: 1.24.2
在部署我的Node.js应用程序时,我遇到了二进制文件的问题。
错误:
Error: Failed to load gRPC binary module because it was not installed for the current system
Expected directory: node-v83-linux-x64-musl
Found: [node-v72-linux-x64-musl]
This problem can often be fixed by running "npm rebuild" on the current
我有一个问题: nodemon不能运行npm脚本(例如npm start),
但是,如果在npm脚本之外的命令行上调用nodemon,nodemon将正常运行。
$ nodemon server.js
14 Feb 22:59:51 - [nodemon] v1.3.7
14 Feb 22:59:51 - [nodemon] to restart at any time, enter `rs`
14 Feb 22:59:51 - [nodemon] watching: *.*
14 Feb 22:59:51 - [nodemon] starting `node server.js`
在npm脚