und dann installieren Sie es auf anderen PC zu überprüfen. Bu nach Paket zu installieren und es Depencies i Fehler haben, wenn versuchen, es esVeröffentlichen npm, und nach der Installation auf anderen PC Fehler
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
Problem zu beginnen, dass ich package.json von git zu klonen haben, wie ich richtig mit package.json veröffentlichen kann?
Hinweis: Kommandostart innerhalb package.json Skripte
Meine json für Publish:
{
"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"
}
Fehler (Warn) bei der Installation von Modul auf anderen 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.
Aber in test/node_modules/module/(here there are everything)
readme , json und script
Es scheint, dass Sie Ihr Startskript nicht aus Ihrem Modulverzeichnis starten. – TGrif
ja, aber es ist möglich, nicht von Modul dir dies zu starten? Im Modul dir json present – Beliaf
gehe ich zum dir test, dort 'npm install' und dort versuche 'npm zu starten ' Aber json ist in dir 'test/node_modules/modul' –
Beliaf