2015-07-21 49 views
0

我在开发一个初学者,但我想成为移动应用的领先开发商;)错误节点降级

我在Windows 8.我想安装科尔多瓦但我不得不降级当前节点I 0.12 。X。版本我可以看到,他必须在0.10.x降级。版本

我做了降级,但是当我想安装一个早期版本(0.10.32及其他)

npm unistall n 
npm install [email protected]

我有以下错误:

C:\Users\Jeremy>npm install [email protected] 
npm ERR! Windows_NT 6.3.9600 
npm ERR! argv "C:\\Program Files (x86)\\nodejs\\\\node.exe" "C:\\Program Files (
x86)\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "[email protected]" 
npm ERR! node v0.12.7 
npm ERR! npm v2.11.3 

npm ERR! version not found: [email protected] 
npm ERR! 
npm ERR! If you need help, you may report this error at: 
npm ERR!  

npm ERR! Please include the following file with any support request: 
npm ERR!  C:\Users\Jeremy\npm-debug.log
+2

节点版本管理器是你的朋友https://github.com/creationix/nvm – Amberlamps

+0

对于windows,[见](https://github.com/coreybutler/nvm-windows)。 – moonwave99

回答

0

如果您的工作流程不涉及全局npm安装等,一种方法是简单地将node.exe可执行文件作为独立使用 - 只需从nodejs.org/dist中获取所需的版本,然后将其放入工作目录中以便用于特定项目。 (Node.exe可以在没有实际“安装”任何东西到系统上运行)。

然后你可以指定你需要的那个版本node.exe的软件包版本,如下所示:npm install [email protected]