相关疑难解决方法(0)

在部署到Azure时,Npm错误不支持fsEvents平台

当我运行npm install时,我收到此错误:

npm ERR! code EBADPLATFORM npm ERR! notsup Unsupported platform for
fsevents@1.1.3: wanted {"os":"darwin","arch":"any"} (current:
{"os":"win32","arch":"x64"}) npm ERR! notsup Valid OS:    darwin npm
ERR! notsup Valid Arch:  any npm ERR! notsup Actual OS:   win32 npm
ERR! notsup Actual Arch: x64
Run Code Online (Sandbox Code Playgroud)

这里已经被问到了,但是接受的答案是它是可选的并不适合我,因为我无法发布到azure,因为npm安装失败.

npm版本: 5.6.0

我试过了:

npm install --no-optional
Run Code Online (Sandbox Code Playgroud)

azure node.js npm

9
推荐指数
4
解决办法
9189
查看次数

如何解决npm安装错误fsevents 1和fsevents 2?

npm WARN 已弃用 fsevents@1.2.13:fsevents 1 将在节点 v14+ 上中断,并且可能使用不安全的二进制文件。升级到 fsevents 2。

我正在遵循 traversary media npm 速成课程的教程,我试图下载 gulp gulp--sass,但我收到了错误消息

javascript node.js

6
推荐指数
1
解决办法
3947
查看次数

npm安装fsevents错误

您好,我正在尝试安装fsevents whitch npm。因此,我使用以下版本:

  • 节点:4.2.6
  • NPM:3.5.2
  • 操作系统:Ubuntu 16.04 LTS

    我正在执行语句

已编辑

npm install fsevents --no-optional --save react-redux
Run Code Online (Sandbox Code Playgroud)

执行后,我在控制台中得到以下错误

已编辑

npm ERR! Linux 4.4.0-45-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "fsevents" "--no-
optional" "--save" "react-redux"
npm ERR! node v4.2.6
npm ERR! npm  v3.5.2
npm ERR! code EBADPLATFORM

npm ERR! notsup Not compatible with your operating system or  
architecture: fsevents@1.0.15
npm ERR! notsup Valid OS:    darwin
npm ERR! notsup Valid Arch:  any
npm ERR! notsup Actual OS:   linux
npm ERR! notsup Actual …
Run Code Online (Sandbox Code Playgroud)

node.js npm

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

为什么有时 npm install 在 mac 上不起作用?

我在运行命令npm install时创建了 nodejs 项目,但它因某些错误而失败

同一个项目正在ubuntu系统上运行,但是当我在mac系统上克隆此代码并尝试运行 npm install 时,它失败并出现一些错误

我认为 scrypt 模块有问题,但我不知道确切原因请帮助我,提前致谢

操作系统:MAC
节点:10.15
Npm:6.0

请参阅下面的错误:-

WareWolf:mynodeapp$ npm install
> scrypt@6.0.3 preinstall /node_modules/scrypt
> node node-scrypt-preinstall.js

Error: Error: Command failed: ./configure
configure: error: /node_modules/scrypt/scrypt/scrypt-1.2.0':
configure: error: C compiler cannot create executables
See `config.log' for more details

> scrypt@6.0.3 install /node_modules/scrypt
> node-gyp rebuild

gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onExit (/usr/local/Cellar/nvm/0.34.0/versions/node/v10.15.0/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:262:23)
gyp ERR! …
Run Code Online (Sandbox Code Playgroud)

macos node.js npm scrypt

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

标签 统计

node.js ×4

npm ×3

azure ×1

javascript ×1

macos ×1

scrypt ×1