相关疑难解决方法(0)

sh:1:node:权限被拒绝

试图在ubuntu 18.04上运行此命令

npm install -g pngquant-bin
Run Code Online (Sandbox Code Playgroud)

但我得到了这个错误,

[..................] | fetchMetadata: sill resolveWithNewModule npm-conf@1.1.3 checking installable status
npm WARN deprecated gulp-util@3.0.8: gulp-util is deprecated - replace it, following the guidelines at https://medium.com/gulpjs/gulp-util-ca3b1f9f9ac5
/root/.nvm/versions/node/v10.8.0/bin/pngquant -> /root/.nvm/versions/node/v10.8.0/lib/node_modules/pngquant-bin/cli.js

> pngquant-bin@5.0.0 postinstall /root/.nvm/versions/node/v10.8.0/lib/node_modules/pngquant-bin
> node lib/install.js

sh: 1: node: Permission denied
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! pngquant-bin@5.0.0 postinstall: `node lib/install.js`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the pngquant-bin@5.0.0 …
Run Code Online (Sandbox Code Playgroud)

node.js npm

17
推荐指数
6
解决办法
9970
查看次数

"npm run build" = "react-scripts: 权限被拒绝"

我正在尝试在 Ubuntu 18.04 上部署我的工作 Windows 10 Spring-Boot/React 应用程序,但尽管多次尝试修复,但仍然收到“react-scripts: Permission denied”错误。希望你们中的一位反应专家可以发现我做错了什么。

我的 package.json 看起来像这样

{
  "name": "medaverter-front",
  "version": "0.1.0",
  "private": true,
  "dependencies": {
    "@testing-library/jest-dom": "^4.2.4",
    "@testing-library/react": "^9.3.2",
    "@testing-library/user-event": "^7.1.2",
    "axios": "^0.19.2",
    "bootstrap": "^4.4.1",
    "react": "^16.13.0",
    "react-dom": "^16.13.0",
    "react-router-dom": "^5.1.2",
    "react-scripts": "3.4.0",
    "react-table-6": "^6.11.0",
    "react-validation": "^3.0.7",
    "reactstrap": "^6.5.0",
    "validator": "^12.2.0"
  },
  "scripts": {
    "start": "react-scripts start",
    "build": "react-scripts build",
    "test": "react-scripts test",
    "eject": "react-scripts eject"
  },
  "eslintConfig": {
    "extends": "react-app"
  },
  "browserslist": {
    "production": [
      ">0.2%",
      "not dead",
      "not op_mini all"
    ], …
Run Code Online (Sandbox Code Playgroud)

node.js npm jenkins reactjs

16
推荐指数
7
解决办法
2万
查看次数

获取错误 /usr/bin/env: node : Permission Denied

我已经在我的服务器(Centos)上完成了我的 ODOO v9 安装。一切都已成功安装。登录页面也可以正常工作,但登录后出现以下错误的页面

/usr/bin/env : node : Permission Denied
Run Code Online (Sandbox Code Playgroud)

我试图更改权限,但我的问题没有解决。有谁知道这是什么错误?

截屏

python linux centos openerp node.js

5
推荐指数
1
解决办法
2万
查看次数

标签 统计

node.js ×3

npm ×2

centos ×1

jenkins ×1

linux ×1

openerp ×1

python ×1

reactjs ×1