이 발생하면 다른 PC에 설치하여 확인하십시오. BU 후 패키지를 설치하고 내가 package.json 제대로 게시 할 수있는 방법, 시도는 그것이npm을 게시 한 후 다른 PC에 설치 한 후에 오류
pm ERR! Linux 4.10.0-38-generic
npm ERR! argv "/home/pavlo/.nvm/versions/node/v6.11.4/bin/node" "/home/pavlo/.nvm/versions/node/v6.11.4/bin/npm" "start" "storjboard"
npm ERR! node v6.11.4
npm ERR! npm v3.10.10
npm ERR! path /home/pavlo/Desktop/test/package.json
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall open
npm ERR! enoent ENOENT: no such file or directory, open '/home/pavlo/Desktop/test/package.json'
npm ERR! enoent ENOENT: no such file or directory, open '/home/pavlo/Desktop/test/package.json'
npm ERR! enoent This is most likely not a problem with npm itself
npm ERR! enoent and is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! Please include the following file with any support request:
npm ERR! /home/pavlo/Desktop/test/npm-debug.log
문제 난 자식에서 package.json를 복제해야한다는 것이 시작하는 때 오류가 depencies?
참고 : package.json 스크립트 내부 명령 시작
에 대한 나의 JSON 게시 :
{
"name": "name",
"version": "0.0.3",
"description": "Name",
"main": "script.js",
"dependencies": {
"request": "^2.83.0",
},
"devDependencies": {},
"scripts": {
"test": "mocha",
"start": "node node_modules/module/script.js"
},
"repository": {
"type": "git",
"url": "https://github.com/me/module"
},
"keywords": [
"somewords"
],
"author": "me",
"license": "MIT",
"bugs": {
"url": "https://github.com/me/module/issues"
},
"homepage": "https://github.com/me/module#readme"
}
오류 (WARN)를 다른 PC
npm WARN enoent ENOENT: no such file or directory, open '/home/pavlo/Desktop/test/package.json'
npm WARN test No description
npm WARN test No repository field.
npm WARN test No README data
npm WARN test No license field.
에 그러나 test/node_modules/module/(here there are everything)
추가 정보에 모듈을 설치하는 경우 , json 및 스크립트
모듈 디렉토리에서 시작 스크립트를 시작하지 않은 것으로 보입니다. – TGrif
예. 그렇지만 모듈 dir에서 시작하는 것이 가능하지 않습니까? 모듈 dir json 현재 – Beliaf
나는 dir 테스트에 가서'npm install'을 실행하고'npm start '을 실행하려고 시도하지만 json은 dir'test/node_modules/module'에 있습니다. –
Beliaf