package.json에 종속성이있는 프로젝트가 있습니다. npm install
을 설치하면 ~/.npm
에 패키지가 설치되지만 현재 폴더의 node_modules
에는 설치되지 않습니다.NPM 패키지를 설치하지 않음
NPM은 node_modules
을 만들고 있지만 거기에는 패키지를 설치하지 않습니다. node_modules
내에 .staging
폴더가 있는데, 프로젝트의 모든 패키지가 포함되어 있지만 검색 후에는 이동하지 않습니다.
노드 v6.9.1/npm v3.10.8을 사용하십시오.
부모 디렉토리에도 package.json이 있지만 현재 디렉토리보다 상위 디렉토리에는 다른 projects/node_modules가 설치되어 있지 않습니다. 그러나 node_modules
디렉토리는 상위 디렉토리에 작성됩니다.
이상하게도 npm install @angular/core
과 같은 패키지를 수동으로 설치할 때 문제없이 설치됩니다.
이것은 우분투 16.04에 있습니다.
package.json :
{
"name": "",
"version": "0.5.0",
"description": "website (Angular2/NodeJS)",
"main": "main.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "John Halbert <https://halbert.tech> ([email protected])",
"license": "SEE LICENSE IN LICENSE.md",
"dependencies": {
"@angular/common": "^2.1.1",
"@angular/compiler": "^2.1.1",
"@angular/core": "^2.1.1",
"@angular/forms": "^2.1.1",
"@angular/http": "^2.1.1",
"@angular/platform-browser": "^2.1.1",
"@angular/platform-browser-dynamic": "^2.1.1",
"@angular/router": "^3.1.1",
"core-js": "^2.4.1",
"reflect-metadata": "^0.1.8",
"systemjs": "^0.19.39",
"zone.js": "^0.6.26"
},
"devDependencies": {
"concurrently": "^3.1.0",
"typings": "^1.4.0"
}
}
어떤'npm' 플래그를'install' 명령과 함께 사용하고 있습니까? – Danibix
설치에 사용되는 플래그가 없습니다. –
'node_modules' 폴더를 제거하고 필요한 패키지를 다시 설치하려 했습니까? – Danibix