2016-05-04 112 views
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" 
    } 
} 
+0

看起來你正試圖安裝在你的package.json中列出的模塊正試圖安裝一個錯誤的版本1.0.5beta。它不是一個NPM問題,而是一個已安裝的模塊。你的package.json內容是什麼? –

+0

@BarryCarlyon在這個問題上看到我的**編輯**部分 – TheUnnamed

+0

可愛。只是試圖在本地安裝這裏 –

回答

1

煤礦安裝的罰款。但我注意到:

我在節點V5下安裝。

您正在使用節點V6。

我得到了以下聲明:

npm WARN deprecated [email protected]: [email protected]<3.0.0 is no longer maintained. Upgrade to [email protected]^4.0.0. 
npm WARN deprecated [email protected]: graceful-fs v3.0.0 and before will fail on node releases >= v6.0. Please update to [email protected]^4.0.0 as soon as possible. Use 'npm ls graceful-fs' to find it in the tree. 

你需要更新你的package.json獲取lodash v4和優美-FS V4

(對我來說最簡單的方法是從刪除這兩條線package.json和npm --save install package再次安裝兩個