0
我從來沒有任何問題npm install
之前工作,所以我不確定現在的問題是什麼?npm安裝不安裝依賴關係 - 只是鎖定文件
我曾嘗試運行:
npm install
npm install --save-dev
我第一次讓我的IDE運行它(PHPStorm),它創造了node_modules
文件夾,但沒有什麼是它的內部。
然後我刪除,並試圖手動運行它,但它所作的只是創建package-lock.json
文件,並沒有別的,輸出功率爲:
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN Invalid version: "1.0"
npm WARN www No description
npm WARN www No repository field.
npm WARN www No README data
npm WARN www No license field.
up to date in 0.087s
現在和他們」之前,我已經有這些警告從未造成任何問題。
我的package.json文件:
{
"name": "**********",
"version": "1.0",
"main": "gulpfile.js",
"devDependencies": {
"autoprefixer": "^6.7.5",
"gulp": "^3.9.1",
"gulp-clean-css": "^2.0.13",
"gulp-concat": "^2.6.0",
"gulp-plumber": "^1.1.0",
"gulp-postcss": "^6.3.0",
"gulp-rename": "^1.2.2",
"gulp-sass": "^2.2.0",
"gulp-sourcemaps": "^1.6.0",
"gulp-uglify": "^2.0.0",
"gulp-util": "^3.0.7"
},
"private": true
}
我然後跑npm install --save-dev --loglevel verbose
這裏是輸出:
npm info it worked if it ends with ok
npm verb cli [ 'C:\\Program Files\\nodejs\\node.exe',
npm verb cli 'C:\\Users\\Brett\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js',
npm verb cli 'install',
npm verb cli '--save-dev',
npm verb cli '--loglevel',
npm verb cli 'verbose' ]
npm info using [email protected]
npm info using [email protected]
npm verb npm-session 24ddfff75bdd69e7
npm verb correctMkdir C:\Users\Brett\AppData\Roaming\npm-cache\_locks correctMkdir not in flight; initializing
npm verb lock using C:\Users\Brett\AppData\Roaming\npm-cache\_locks\staging-822c9c4b46ec75df.lock for D:\******************\node_modules\.staging
npm verb unlock done using C:\Users\Brett\AppData\Roaming\npm-cache\_locks\staging-822c9c4b46ec75df.lock for D:\****************\node_modules\.staging
npm info linkStuff !invalid#1
npm verb linkBins !invalid#1
npm verb linkMans !invalid#1
npm info lifecycle undefined~install: undefined
npm info lifecycle undefined~postinstall: undefined
npm info lifecycle undefined~prepublish: undefined
npm info lifecycle undefined~prepare: undefined
npm verb saving []
npm verb shrinkwrap skipping write for package.json because there were no changes.
npm info lifecycle undefined~preshrinkwrap: undefined
npm info lifecycle undefined~shrinkwrap: undefined
npm verb shrinkwrap skipping write for package-lock.json because there were no changes.
npm info lifecycle undefined~postshrinkwrap: undefined
npm WARN Invalid version: "1.0"
npm WARN www No description
npm WARN www No repository field.
npm WARN www No README data
npm WARN www No license field.
up to date in 0.057s
npm verb exit [ 0, true ]
npm info ok
問題是什麼嗎?