0
我正在使用npm版本3.8.6。安裝節點6後出錯,npm ERR!無效版本:1.0.5beta
我安裝了最新版本的NodeJS,而這樣做
MacBook-Pro-de-MarceloRS:promo-mobile-ccsearchlp7a Marcelo$ rm -rf node_modules/; npm install
npm WARN deprecated [email protected]: Either use gulp-tap or gulp-flatmap, depending on your needs
npm ERR! Darwin 15.0.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install"
npm ERR! node v6.0.0
npm ERR! npm v3.8.6
npm ERR! Invalid Version: 1.0.5beta
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! <https://github.com/npm/npm/issues>
npm ERR! Please include the following file with any support request:
npm ERR! /Users/Marcelo/Documents/Projects/BankOfAmericaApps/promo-mobile-ccsearchlp7a/npm-debug.log
MacBook-Pro-de-MarceloRS:promo-mobile-ccsearchlp7a Marcelo$ npm -v
3.8.6
爲什麼你認爲它是什麼?
我正在使用OSX El Capitan。
編輯
這裏是我的package.json
{
"name": "promo-mobile-ccsearchlp7a",
"app": "app",
"dist": "dist",
"version": "2.0.0",
"private": true,
"dependencies": {
"assemble": "~0.9.1",
"browser-sync": "~2.11.1",
"del": "~2.2.0",
"engine-handlebars": "^0.8.0",
"get-value": "~2.0.3",
"gulp": "~3.9.1",
"gulp-autoprefixer": "~3.1.0",
"gulp-cssnano": "~2.1.1",
"gulp-eslint": "~2.0.0",
"gulp-extname": "~0.2.2",
"gulp-filter": "~3.0.1",
"gulp-flatten": "~0.2.0",
"gulp-foreach": "~0.1.0",
"gulp-imagemin": "~2.4.0",
"gulp-load-plugins": "~1.2.0",
"gulp-notify": "~2.2.0",
"gulp-plumber": "~1.1.0",
"gulp-sass": "~2.2.0",
"gulp-sourcemaps": "~1.6.0",
"gulp-uglify": "~1.5.2",
"gulp-usemin": "~0.3.20",
"gulp-util": "~3.0.7",
"handlebars-helpers": "github:assemble/handlebars-helpers#dev",
"main-bower-files": "~2.9.0",
"multimatch": "~2.1.0",
"run-sequence": "~1.1.5"
},
"engines": {
"node": ">=0.12.2"
},
"devDependencies": {
"git-guppy": "~1.1.0",
"gulp-watch": "~4.3.5"
},
"scripts": {
"postinstall": "bower install"
}
}
看起來你正試圖安裝在你的package.json中列出的模塊正試圖安裝一個錯誤的版本1.0.5beta。它不是一個NPM問題,而是一個已安裝的模塊。你的package.json內容是什麼? –
@BarryCarlyon在這個問題上看到我的**編輯**部分 – TheUnnamed
可愛。只是試圖在本地安裝這裏 –