がある場合は、他のPCにインストールして確認してください。 Buは後にパッケージをインストールし、それを試してはそれを私はpackage.jsonで正しく公開する方法、のgitから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
問題、それを起動するときに私はエラーが発生している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)
readmeのをモジュールをインストールします、jsonとスクリプト
モジュールディレクトリから起動スクリプトを起動していないようです。 – TGrif
はい、これはモジュールdirではなく起動できますか?モジュールdir jsonに存在する – Beliaf
私はdirテストに行きます。 'npm install'を実行し、 'npm start 'を実行しようとしました。しかし、jsonは 'test/node_modules/module'ディレクトリにあります。 –
Beliaf