NPM 安装错误 MEAN.js Amazon EC2 Linux 上的示例应用程序?
NPM install error MEAN.js sample application on Amazon EC2 Linux?
我使用 Mac OS 计算机上的 shell 连接到我的 Amazon EC2 实例 运行ning Linux AMI。然后我将 CD 放入开发文件并 git 克隆 mean.js boilerplate/sample 应用程序。这里是 GIT mean.js https://github.com/meanjs/mean and heres the tutorial that I followed https://blog.codeship.com/running-mean-web-application-docker-containers-aws/ 的回购协议。然后我将 CD 放入 meanjs 文件夹和 运行 npm install 命令。然后我间歇性地收到一堆错误说 npm ERR! registry error parsing json
。最后就在 npm 安装完成之前 运行 将其 returns 出现以下错误:
npm ERR! Linux 3.14.35-28.38.amzn1.x86_64
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install"
npm ERR! node v0.13.0-pre
npm ERR! npm v2.11.2
npm ERR! code ETARGET
npm ERR! notarget No compatible version found: node-pre-gyp@'>=0.6.5 <0.7.0'
npm ERR! notarget Valid install targets:
npm ERR! notarget ["0.1.0","0.1.1","0.1.2","0.1.3","0.1.4","0.1.5","0.1.6","0.1.7","0.1.8","0.1.9","0.2.1","0.2.2","0.2.3","0.2.4","0.2.5","0.2.6","0.3.0","0.3.1","0.3.1-alpha","0.4.0","0.4.1","0.4.2"]
npm ERR! notarget
npm ERR! notarget This is most likely not a problem with npm itself.
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn't exist.
npm ERR! notarget
npm ERR! notarget It was specified as a dependency of 'v8-profiler'
npm ERR! notarget
奇怪的是,在执行 bower install
命令后,我能够 运行 应用程序,这通常由 npm install 自动完成,但也许不是因为它已停止通过 npm 错误。
我注意到错误指的是 node-pre-gyp,这是我在我的 Mac OS 上全局安装的东西,前一段时间为另一个项目,所以我做了一个 npm uninstall node-pre -gyp,它说模块没有安装。
在 docker 容器中构建一个旧节点
然后 运行 再次安装 npm
此外,这有助于构建节点
https://registry.hub.docker.com/u/maccam912/meanjs/dockerfile/
我使用 Mac OS 计算机上的 shell 连接到我的 Amazon EC2 实例 运行ning Linux AMI。然后我将 CD 放入开发文件并 git 克隆 mean.js boilerplate/sample 应用程序。这里是 GIT mean.js https://github.com/meanjs/mean and heres the tutorial that I followed https://blog.codeship.com/running-mean-web-application-docker-containers-aws/ 的回购协议。然后我将 CD 放入 meanjs 文件夹和 运行 npm install 命令。然后我间歇性地收到一堆错误说 npm ERR! registry error parsing json
。最后就在 npm 安装完成之前 运行 将其 returns 出现以下错误:
npm ERR! Linux 3.14.35-28.38.amzn1.x86_64
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install"
npm ERR! node v0.13.0-pre
npm ERR! npm v2.11.2
npm ERR! code ETARGET
npm ERR! notarget No compatible version found: node-pre-gyp@'>=0.6.5 <0.7.0'
npm ERR! notarget Valid install targets:
npm ERR! notarget ["0.1.0","0.1.1","0.1.2","0.1.3","0.1.4","0.1.5","0.1.6","0.1.7","0.1.8","0.1.9","0.2.1","0.2.2","0.2.3","0.2.4","0.2.5","0.2.6","0.3.0","0.3.1","0.3.1-alpha","0.4.0","0.4.1","0.4.2"]
npm ERR! notarget
npm ERR! notarget This is most likely not a problem with npm itself.
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn't exist.
npm ERR! notarget
npm ERR! notarget It was specified as a dependency of 'v8-profiler'
npm ERR! notarget
奇怪的是,在执行 bower install
命令后,我能够 运行 应用程序,这通常由 npm install 自动完成,但也许不是因为它已停止通过 npm 错误。
我注意到错误指的是 node-pre-gyp,这是我在我的 Mac OS 上全局安装的东西,前一段时间为另一个项目,所以我做了一个 npm uninstall node-pre -gyp,它说模块没有安装。
在 docker 容器中构建一个旧节点 然后 运行 再次安装 npm
此外,这有助于构建节点 https://registry.hub.docker.com/u/maccam912/meanjs/dockerfile/