我想在Ubuntu 12.04上安装NodeJS版本0.8.18.我尝试安装最新版本,然后通过使用恢复到0.8.18 nvm,但是当我运行我的代码时,显然安装的软件包和两个版本(最新版本和0.8.18)存在一些问题.由于我不知道如何解决这个问题,我从Node安装中清理了机器,并考虑直接安装我感兴趣的版本(v0.8.18).
我正在尝试为 Windows 7 安装 NodeJS。我尝试安装最新的 NodeJS,但它与 Windows 7 不兼容。我想知道是否有人知道您可以在 Windows 7 上安装的 NodeJS 的最新版本是什么?谢谢你。
在我从一个node.js版本切换到另一个n模块 - https://github.com/visionmedia/n/后,我的npm被打破了......
MacBook-Pro-Dmitri:~ dmitri$ npm --version
module.js:340
throw err;
^
Error: Cannot find module 'npmlog'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:362:17)
at require (module.js:378:17)
at /usr/local/bin/npm:19:11
at Object.<anonymous> (/usr/local/bin/npm:87:3)
at Module._compile (module.js:449:26)
at Object.Module._extensions..js (module.js:467:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
Run Code Online (Sandbox Code Playgroud)
然后我再次安装npm,因为它在这里建议 - https://github.com/visionmedia/n/issues/101
curl https://npmjs.org/install.sh | sh
Run Code Online (Sandbox Code Playgroud)
npm开始工作..
但后来我为节点版本做了另一个开关:
n 0.8.22
Run Code Online (Sandbox Code Playgroud)
和npm现在再次被打破同样的错误.
这非常烦人..我需要在每个版本切换后手动安装npm吗?!
我正在使用nvm-windows 1.1.7版本。
我刚刚安装了节点11.9.0。
nvm会与此节点版本一起安装npm 6.5.0版。但是,已经有npm 6.7.0版本可用。
现在,npm i -g npm我得到:
npm ERR! path C:\Program Files\nodejs\npm.cmd
npm ERR! code EEXIST
npm ERR! Refusing to delete C:\Program Files\nodejs\npm.cmd: is outside C:\Program Files\nodejs\node_modules\npm and not a link
npm ERR! File exists: C:\Program Files\nodejs\npm.cmd
npm ERR! Move it away, and try again.
Run Code Online (Sandbox Code Playgroud)
我没有办法避免这种情况。
我正在尝试创建一个 React 应用程序,但在我的控制台中出现以下错误。
Installing packages. This might take a couple of minutes.
Installing react, react-dom, and react-scripts...
yarn add v1.10.1
info No lockfile found.
[1/4] Resolving packages...
warning react-scripts > eslint > file-entry-cache > flat-cache > circular- json@0.3.3: CircularJSON is in maintenance only, flatted is its successor.
[2/4] Fetching packages...
error eslint@5.6.0: The engine "node" is incompatible with this module. Expected version "^6.14.0 || ^8.10.0 || >=9.10.0". Got "9.5.0"
error Found incompatible module
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this …Run Code Online (Sandbox Code Playgroud) 我们有两个 Node.js 应用程序。这两个应用程序不能在同一节点版本中运行,一个应用程序只能在node4.8.3中运行,另一个应用程序只能在node10.15.1中运行。
我们如何在同一台服务器上同时运行不同的 Node.js 版本?
尝试更新/更改到通过自制程序安装的NVM 上的特定 NPM 版本
(在 beta 测试时非常有用,目前为 NPM v3.0.x)
我从 NVM 中跑出来npm install -g npm@3.0-latest
在 NVM 中,我通过以下方式更新到当前最新的节点版本nvm install v0.12.7,但这与 npm 捆绑在一起v2.11.3。显然,因为它是 NPM 的最新稳定版本。
有没有办法选择/安装您想要在 NVM 中使用的 NPM 版本?
node.js ×7
npm ×3
nvm ×3
javascript ×2
homebrew ×1
n ×1
nvm-windows ×1
ubuntu ×1
version ×1
versioning ×1
windows ×1
windows-7 ×1