I moved my Next.js to use Preact, but as side-effect Storybook not working more as spected. The output log below, and at the end the commands to reproduce the issue:
yarn build-storybook
yarn run v1.22.17
warning ../package.json: No license field
$ build-storybook
info #storybook/preact v6.4.19
info
info => Cleaning outputDir: /storybook-static
info => Loading presets
WARN Failed to load preset: "/node_modules/#storybook/preact/node_modules/#storybook/manager-webpack4/dist/cjs/presets/manager-preset.js"
ERR! Error: Cannot find module '/node_modules/react/package.json.js'
ERR! at createEsmNotFoundErr (internal/modules/cjs/loader.js:929:15)
ERR! at finalizeEsmResolution (internal/modules/cjs/loader.js:922:15)
ERR! at resolveExports (internal/modules/cjs/loader.js:450:14)
ERR! at Function.Module._findPath (internal/modules/cjs/loader.js:490:31)
ERR! at Function.Module._resolveFilename (internal/modules/cjs/loader.js:888:27)
ERR! at resolveFileName (/node_modules/resolve-from/index.js:29:39)
ERR! at resolveFrom (/node_modules/resolve-from/index.js:43:9)
ERR! at module.exports (/node_modules/resolve-from/index.js:46:47)
ERR! at Object.<anonymous> (/node_modules/#storybook/ui/paths.js:17:18)
ERR! at Module._compile (internal/modules/cjs/loader.js:1085:14)
ERR! at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
ERR! at Module.load (internal/modules/cjs/loader.js:950:32)
ERR! at Function.Module._load (internal/modules/cjs/loader.js:790:12)
ERR! at Module.require (internal/modules/cjs/loader.js:974:19)
ERR! at require (internal/modules/cjs/helpers.js:93:18)
ERR! at Object.<anonymous> (/node_modules/#storybook/preact/node_modules/#storybook/manager-webpack4/dist/cjs/presets/manager-preset.js:63:38)
ERR! Error: Cannot find module '/node_modules/react/package.json.js'
ERR! at createEsmNotFoundErr (internal/modules/cjs/loader.js:929:15)
ERR! at finalizeEsmResolution (internal/modules/cjs/loader.js:922:15)
ERR! at resolveExports (internal/modules/cjs/loader.js:450:14)
ERR! at Function.Module._findPath (internal/modules/cjs/loader.js:490:31)
ERR! at Function.Module._resolveFilename (internal/modules/cjs/loader.js:888:27)
ERR! at resolveFileName (/node_modules/resolve-from/index.js:29:39)
ERR! at resolveFrom (/node_modules/resolve-from/index.js:43:9)
ERR! at module.exports (/node_modules/resolve-from/index.js:46:47)
ERR! at Object.<anonymous> (/node_modules/#storybook/ui/paths.js:17:18)
ERR! at Module._compile (internal/modules/cjs/loader.js:1085:14)
ERR! at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
ERR! at Module.load (internal/modules/cjs/loader.js:950:32)
ERR! at Function.Module._load (internal/modules/cjs/loader.js:790:12)
ERR! at Module.require (internal/modules/cjs/loader.js:974:19)
ERR! at require (internal/modules/cjs/helpers.js:93:18)
ERR! at Object.<anonymous> (/node_modules/#storybook/preact/node_modules/#storybook/manager-webpack4/dist/cjs/presets/manager-preset.js:63:38) {
ERR! code: 'MODULE_NOT_FOUND',
ERR! path: '/node_modules/react/package.json'
ERR! }
info => Compiling preview..
ERR! Error: Cannot find module '/node_modules/react/package.json.js'
ERR! at createEsmNotFoundErr (internal/modules/cjs/loader.js:929:15)
ERR! at finalizeEsmResolution (internal/modules/cjs/loader.js:922:15)
ERR! at resolveExports (internal/modules/cjs/loader.js:450:14)
ERR! at Function.Module._findPath (internal/modules/cjs/loader.js:490:31)
ERR! at Function.Module._resolveFilename (internal/modules/cjs/loader.js:888:27)
ERR! at Function.resolve (internal/modules/cjs/helpers.js:99:19)
ERR! at _default (/node_modules/#storybook/builder-webpack4/dist/cjs/preview/iframe-webpack.config.js:196:46)
ERR! at async Object.build (/node_modules/#storybook/builder-webpack4/dist/cjs/index.js:174:16)
ERR! at async Promise.all (index 1)
ERR! at async buildStaticStandalone (/node_modules/#storybook/preact/node_modules/#storybook/core-server/dist/cjs/build-static.js:175:28)
ERR! at async buildStatic (/node_modules/#storybook/preact/node_modules/#storybook/core-server/dist/cjs/build-static.js:195:5)
ERR! Error: Cannot find module '/node_modules/react/package.json.js'
ERR! at createEsmNotFoundErr (internal/modules/cjs/loader.js:929:15)
ERR! at finalizeEsmResolution (internal/modules/cjs/loader.js:922:15)
ERR! at resolveExports (internal/modules/cjs/loader.js:450:14)
ERR! at Function.Module._findPath (internal/modules/cjs/loader.js:490:31)
ERR! at Function.Module._resolveFilename (internal/modules/cjs/loader.js:888:27)
ERR! at Function.resolve (internal/modules/cjs/helpers.js:99:19)
ERR! at _default (/node_modules/#storybook/builder-webpack4/dist/cjs/preview/iframe-webpack.config.js:196:46)
ERR! at async Object.build (/node_modules/#storybook/builder-webpack4/dist/cjs/index.js:174:16)
ERR! at async Promise.all (index 1)
ERR! at async buildStaticStandalone (/node_modules/#storybook/preact/node_modules/#storybook/core-server/dist/cjs/build-static.js:175:28)
ERR! at async buildStatic (/node_modules/#storybook/preact/node_modules/#storybook/core-server/dist/cjs/build-static.js:195:5) {
ERR! code: 'MODULE_NOT_FOUND',
ERR! path: '/node_modules/react/package.json'
ERR! }
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
The complete process to reproduce the issue is below:
npx yarn init -yp; npx yarn
npx sb init --type preact
yarn add \
preact \
react#npm:#preact/compat \
react-dom#npm:#preact/compat \
react-ssr-prepass#npm:preact-ssr-prepass \
preact-render-to-string
yarn build-storybook
Add this on your .storybook/main.js
managerWebpack: (config, options) => {
options.cache.set = () => Promise.resolve();
return config;
}
Related
My code is this
const { Board, Led } = require("johnny-five");
const board = new Board();
board.on("ready", () =\> {
// Create an Led on pin 13
const led = new Led(13);
// Blink every half second
led.blink(500);
});
And the error I'm getting is this
Error: Cannot find module 'serialport'
Require stack:
- A:\Projects\Web\Arduino\node_modules\johnny-five\lib\board.js
- A:\Projects\Web\Arduino\node_modules\johnny-five\lib\accelerometer.js
- A:\Projects\Web\Arduino\node_modules\johnny-five\lib\johnny-five.js
- A:\Projects\Web\Arduino\app.js
I tried to install serialport and after installing I get this error
TypeError: serialport.list is not a function
at Board.detect (A:\Projects\Web\Arduino\node_modules\johnny-five\lib\board.js:42:16)
at new Board (A:\Projects\Web\Arduino\node_modules\johnny-five\lib\board.js:291:23)
at Object.<anonymous> (A:\Projects\Web\Arduino\app.js:2:15)
at Module._compile (node:internal/modules/cjs/loader:1103:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1155:10)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:77:12)
at node:internal/main/run_main_module:17:47
[nodemon] app crashed - waiting for file changes before starting...
I also tried this code.
var five = require("johnny-five");
var board = new five.Board({ port: "COM22" });
board.on("ready", function(){
var lead = new five.Led(13);
lead.blink(1000);
})
Then I get this error.
Error: Cannot find module 'firmata'
And when I try to install firmata I get this error
npm ERR! code 1 npm ERR! path C:\Users\username Mengistu\AppData\Roaming\npm\node_modules\firmata\node_modules#serialport\bindings npm ERR! command failed npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c prebuild-install --tag-prefix #serialport/bindings# || node-gyp rebuild npm ERR! gyp info it worked if it ends with ok npm ERR! gyp info using node-gyp#9.0.0 npm ERR! gyp info using node#16.14.0 | win32 | x64 npm ERR! gyp info find Python using Python version 3.10.5 found at "C:\Users\username Mengistu\AppData\Local\Programs\Python\Python310\python.exe"npm ERR! gyp ERR! find VS npm ERR! gyp ERR! find VS msvs_version not set from command line or npm config npm ERR! gyp ERR! find VS VCINSTALLDIR not set, not running in VS Command Prompt npm ERR! gyp ERR! find VS could not use PowerShell to find Visual Studio 2017 or newer, try re-running with '--loglevel silly' for more detailsnpm ERR! gyp ERR! find VS looking for Visual Studio 2015 npm ERR! gyp ERR! find VS - not found npm ERR! gyp ERR! find VS not looking for VS2013 as it is only supported up to Node.js 8 npm ERR! gyp ERR! find VS npm ERR! gyp ERR! find VS ************************************************************** npm ERR! gyp ERR! find VS You need to install the latest version of Visual Studio npm ERR! gyp ERR! find VS including the "Desktop development with C++" workload. npm ERR! gyp ERR! find VS For more information consult the documentation at: npm ERR! gyp ERR! find VS https://github.com/nodejs/node-gyp#on-windowsnpm ERR! gyp ERR! find VS ************************************************************** npm ERR! gyp ERR! find VS npm ERR! gyp ERR! configure error npm ERR! gyp ERR! stack Error: Could not find any Visual Studio installation to use npm ERR! gyp ERR! stack at VisualStudioFinder.fail (C:\Users\username Mengistu\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:122:47) npm ERR! gyp ERR! stack at C:\Users\username Mengistu\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:75:16 npm ERR! gyp ERR! stack at VisualStudioFinder.findVisualStudio2013 (C:\Users\username Mengistu\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:363:14)npm ERR! gyp ERR! stack at C:\Users\username Mengistu\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:71:14 npm ERR! gyp ERR! stack at C:\Users\username Mengistu\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:384:16 npm ERR! gyp ERR! stack at C:\Users\username Mengistu\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\util.js:54:7 npm ERR! gyp ERR! stack at C:\Users\username Mengistu\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\util.js:33:16 npm ERR! gyp ERR! stack at ChildProcess.exithandler (node:child_process:406:5) npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:520:28) npm ERR! gyp ERR! stack at maybeClose (node:internal/child_process:1092:16) npm ERR! gyp ERR! System Windows_NT 10.0.19044 npm ERR! gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Users\username Mengistu\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild" npm ERR! gyp ERR! cwd C:\Users\username Mengistu\AppData\Roaming\npm\node_modules\firmata\node_modules#serialport\bindings npm ERR! gyp ERR! node -v v16.14.0 npm ERR! gyp ERR! node-gyp -v v9.0.0 npm ERR! gyp ERR! not ok
npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\username Mengistu\AppData\Local\npm-cache_logs\2022-10-28T08_17_34_241Z-debug-0.log
npm run dev
active-class-name#1.0.0 dev D:\Aman\aquadsoft\ept-react\new\ept-react
next
internal/modules/cjs/loader.js:969
throw err;
^
Error: Cannot find module 'D:\Aman\aquadsoft\ept-react\new\ept-react\node_modules\next\dist\bin\next'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:966:15)
at Function.Module._load (internal/modules/cjs/loader.js:842:27)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12)
at internal/main/run_main_module.js:17:47 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! active-class-name#1.0.0 dev: next
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the active-class-name#1.0.0 dev script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\AMAN\AppData\Roaming\npm-cache_logs\2020-07-11T05_00_56_071Z-debug.log
It worked finally, with removing the npm and npm-cache folder and then running command
npm install -g npm#latest
After that installed nextJs globally and run npm install inside my project directory.
It worked.
I am trying to add accounts-password package to my project, but I get this error instead, I have no clue what causes it or how to fix it. I tried to run
meteor npm install node-gyp rebuild as mentioned in the error but it does not help...
...seed>meteor add accounts-password
=> Errors while adding packages:
While loading package npm-bcrypt#0.8.7:
error: Command failed:
C:\Users\...\AppData\Local\.meteor\packages\meteor-tool\1.4.0-1\mt-os.windows.x86_
32\dev_bundle\bin\npm.cmd
rebuild --no-bin-links --update-binary
gyp ERR! build error
gyp ERR! stack Error:
`C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe` failed with exit
code: 1
gyp ERR! stack at ChildProcess.onExit
(C:\Users\...\AppData\Local\.meteor\packages\meteor-tool\1.4.0-1\mt-os.windows.x86
_32\dev_bundle\lib\node_modules\node-gyp\lib\build.js:276:23)
gyp ERR! stack at emitTwo (events.js:87:13)
gyp ERR! stack at ChildProcess.emit (events.js:172:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit
(internal/child_process.js:200:12)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command
"C:\\Users\\...\\AppData\\Local\\.meteor\\packages\\meteor-tool\\1.4.0-1\\mt-os.wi
ndows.x86_32\\dev_bundle\\bin\\node.exe"
"C:\\Users\\...\\AppData\\Local\\.meteor\\packages\\meteor-tool\\1.4.0-1\\mt-os.wi
ndows.x86_32\\dev_bundle\\lib\\node_modules\\node-gyp\\bin\\node-gyp.js"
"rebuild"
gyp ERR! cwd
C:\Users\...\AppData\Local\.meteor\packages\npm-bcrypt\0.8.7\npm\node_modules\.tem
p-pilafw\node_modules\bcrypt
gyp ERR! node -v v4.4.7
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok
npm ERR! Windows_NT 6.1.7601
npm ERR! argv
"C:\\Users\\...\\AppData\\Local\\.meteor\\packages\\meteor-tool\\1.4.0-1\\mt-os.wi
ndows.x86_32\\dev_bundle\\bin\\node.exe"
"C:\\Users\\...\\AppData\\Local\\.meteor\\packages\\meteor-tool\\1.4.0-1\\mt-os.wi
ndows.x86_32\\dev_bundle\\lib\\node_modules\\npm\\bin\\npm-cli.js"
"rebuild" "--no-bin-links" "--update-binary"
npm ERR! node v4.4.7
npm ERR! npm v3.10.5
npm ERR! code ELIFECYCLE
npm ERR! bcrypt#0.8.7 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the bcrypt#0.8.7 install script 'node-gyp rebuild'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the bcrypt package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get information on how to open an issue for this project
with:
npm ERR! npm bugs bcrypt
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls bcrypt
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR!
C:\Users\...\AppData\Local\.meteor\packages\npm-bcrypt\0.8.7\npm\node_modules\.tem
p-pilafw\npm-debug.log
gyp ERR! build error
gyp ERR! stack Error:
`C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe` failed with exit
code: 1
gyp ERR! stack at ChildProcess.onExit
(C:\Users\...\AppData\Local\.meteor\packages\meteor-tool\1.4.0-1\mt-os.windows.x86
_32\dev_bundle\lib\node_modules\node-gyp\lib\build.js:276:23)
gyp ERR! stack at emitTwo (events.js:87:13)
gyp ERR! stack at ChildProcess.emit (events.js:172:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit
(internal/child_process.js:200:12)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command
"C:\\Users\\...\\AppData\\Local\\.meteor\\packages\\meteor-tool\\1.4.0-1\\mt-os.wi
ndows.x86_32\\dev_bundle\\bin\\node.exe"
"C:\\Users\\...\\AppData\\Local\\.meteor\\packages\\meteor-tool\\1.4.0-1\\mt-os.wi
ndows.x86_32\\dev_bundle\\lib\\node_modules\\node-gyp\\bin\\node-gyp.js"
"rebuild"
gyp ERR! cwd
C:\Users\...\AppData\Local\.meteor\packages\npm-bcrypt\0.8.7\npm\node_modules\.tem
p-pilafw\node_modules\bcrypt
gyp ERR! node -v v4.4.7
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok
npm ERR! Windows_NT 6.1.7601
npm ERR! argv
"C:\\Users\\...\\AppData\\Local\\.meteor\\packages\\meteor-tool\\1.4.0-1\\mt-os.wi
ndows.x86_32\\dev_bundle\\bin\\node.exe"
"C:\\Users\\...\\AppData\\Local\\.meteor\\packages\\meteor-tool\\1.4.0-1\\mt-os.wi
ndows.x86_32\\dev_bundle\\lib\\node_modules\\npm\\bin\\npm-cli.js"
"rebuild" "--no-bin-links" "--update-binary"
npm ERR! node v4.4.7
npm ERR! npm v3.10.5
npm ERR! code ELIFECYCLE
npm ERR! bcrypt#0.8.7 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the bcrypt#0.8.7 install script 'node-gyp rebuild'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the bcrypt package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get information on how to open an issue for this project
with:
npm ERR! npm bugs bcrypt
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls bcrypt
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR!
C:\Users\...\AppData\Local\.meteor\packages\npm-bcrypt\0.8.7\npm\node_modules\.tem
p-pilafw\npm-debug.log
Im am using Windows7-x64. meteor 1.4.0.1 and the inspina meteor theme.
I reinstalled meteor, I tried to create a new virgin project and add accounts-password to it, but I get the same issue...
Tried to install meteor on my Laptop, and getting the same issue... is there something wrong with meteor itself?
I think your issue is mentioned here.
Try to run npm install --global --production windows-build-tools from Powershell as mentioned here
If some one who tired of trying 'npm install --global --production windows-build-tools', they can skip it after the Python installation and continue buid tools manually, by browsing to C:\Users\#user#\.windows-build-tools'. Refer this link
I'm currently trying to run Telescope on Meteor. I've installed meteor as well and cloned Telescope in my Documents folder. However, when I run 'meteor' on Telescope, I get this error:
*Renzzes-MacBook-Air:Telescope renzzemistal$ meteor
[[[[[ ~/Documents/Telescope ]]]]]
=> Started proxy.
=> Started MongoDB.
telescope:email: updating npm dependencies -- html-to-text...
npm WARN package.json packages-for-meteor-smartpackage-zf7sqf#0.0.0 No
description
npm WARN package.json packages-for-meteor-smartpackage-zf7sqf#0.0.0 No
repository field.
npm WARN package.json packages-for-meteor-smartpackage-zf7sqf#0.0.0 No README
data
npm WARN engine html-to-text#0.1.0: wanted: {"node":"~0.8.0"} (current:
{"node":"0.10.36","npm":"1.4.28"})
npm ERR! Error: EACCES, mkdir
'/Users/renzzemistal/.npm/underscore.string/2.3.3'
npm ERR! { [Error: EACCES, mkdir
'/Users/renzzemistal/.npm/underscore.string/2.3.3']
npm ERR! errno: 3,
npm ERR! code: 'EACCES',
npm ERR! path: '/Users/renzzemistal/.npm/underscore.string/2.3.3',
npm ERR! parent: 'html-to-text' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! System Darwin 14.3.0
npm ERR! command
"/Users/renzzemistal/.meteor/packages/meteor-tool/.1.1.3.1wysac9++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/bin/node"
"/Users/renzzemistal/.meteor/packages/meteor-tool/.1.1.3.1wysac9++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/bin/npm"
"install"
npm ERR! cwd
/Users/renzzemistal/Documents/Telescope/packages/telescope-email/.npm/package-new-yrsnn6
npm ERR! node -v v0.10.36
npm ERR! npm -v 1.4.28
npm ERR! path /Users/renzzemistal/.npm/underscore.string/2.3.3
npm ERR! code EACCES
npm ERR! errno 3
npm ERR! stack Error: EACCES, mkdir
'/Users/renzzemistal/.npm/underscore.string/2.3.3'
npm ERR! not ok code 0
telescope:newsletter: updating npm dependencies -- html-to-text...
npm WARN package.json packages-for-meteor-smartpackage-9t1t7p#0.0.0 No
description
npm WARN package.json packages-for-meteor-smartpackage-9t1t7p#0.0.0 No
repository field.
npm WARN package.json packages-for-meteor-smartpackage-9t1t7p#0.0.0 No README
data
npm WARN engine html-to-text#0.1.0: wanted: {"node":"~0.8.0"} (current:
{"node":"0.10.36","npm":"1.4.28"})
npm ERR! Error: EACCES, mkdir
'/Users/renzzemistal/.npm/underscore.string/2.3.3'
npm ERR! { [Error: EACCES, mkdir
'/Users/renzzemistal/.npm/underscore.string/2.3.3']
npm ERR! errno: 3,
npm ERR! code: 'EACCES',
npm ERR! path: '/Users/renzzemistal/.npm/underscore.string/2.3.3',
npm ERR! parent: 'html-to-text' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! System Darwin 14.3.0
npm ERR! command
"/Users/renzzemistal/.meteor/packages/meteor-tool/.1.1.3.1wysac9++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/bin/node"
"/Users/renzzemistal/.meteor/packages/meteor-tool/.1.1.3.1wysac9++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/bin/npm"
"install"
npm ERR! cwd
/Users/renzzemistal/Documents/Telescope/packages/telescope-newsletter/.npm/package-new-8pwb46
npm ERR! node -v v0.10.36
npm ERR! npm -v 1.4.28
npm ERR! path /Users/renzzemistal/.npm/underscore.string/2.3.3
npm ERR! code EACCES
npm ERR! errno 3
npm ERR! stack Error: EACCES, mkdir
'/Users/renzzemistal/.npm/underscore.string/2.3.3'
npm ERR! not ok code 0
telescope:post-by-feed: updating npm dependencies -- feedparser, to-markdown,
he, iconv-lite...
npm WARN package.json packages-for-meteor-smartpackage-cjzir1#0.0.0 No
description
npm WARN package.json packages-for-meteor-smartpackage-cjzir1#0.0.0 No
repository field.
npm WARN package.json packages-for-meteor-smartpackage-cjzir1#0.0.0 No README
data
npm ERR! Error: EACCES, mkdir '/Users/renzzemistal/.npm/iconv-lite/0.4.7'
npm ERR! { [Error: EACCES, mkdir '/Users/renzzemistal/.npm/iconv-lite/0.4.7']
npm ERR! errno: 3,
npm ERR! code: 'EACCES',
npm ERR! path: '/Users/renzzemistal/.npm/iconv-lite/0.4.7',
npm ERR! parent: 'packages-for-meteor-smartpackage-cjzir1' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! System Darwin 14.3.0
npm ERR! command
"/Users/renzzemistal/.meteor/packages/meteor-tool/.1.1.3.1wysac9++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/bin/node"
"/Users/renzzemistal/.meteor/packages/meteor-tool/.1.1.3.1wysac9++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/bin/npm"
"install"
npm ERR! cwd
/Users/renzzemistal/Documents/Telescope/packages/telescope-post-by-feed/.npm/package-new-ah6u81
npm ERR! node -v v0.10.36
npm ERR! npm -v 1.4.28
npm ERR! path /Users/renzzemistal/.npm/iconv-lite/0.4.7
npm ERR! code EACCES
npm ERR! errno 3
npm ERR! stack Error: EACCES, mkdir '/Users/renzzemistal/.npm/iconv-lite/0.4.7'
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!
/Users/renzzemistal/Documents/Telescope/packages/telescope-post-by-feed/.npm/package-new-ah6u81/npm-debug.log
npm ERR! not ok code 0
telescope:rss: updating npm dependencies -- rss...
=> Errors prevented startup:
While building package telescope:email:
error: couldn't install npm packages from npm-shrinkwrap
While building package telescope:newsletter:
error: couldn't install npm packages from npm-shrinkwrap
While building package telescope:post-by-feed:
error: couldn't install npm packages from npm-shrinkwrap
=> Your application has errors. Waiting for file change.*
Did I miss something? Or should I install it somewhere else?
Appreciate any help!
Thanks!
EACCES is a common error associated with lacking the appropriate permissions. Try running the command again as root:
sudo meteor
iron-router: updating npm dependencies -- connect...
npm ERR! Error: EACCES, open '/home/john/.npm/connect/2.9.0/package/package.json'
npm ERR! { [Error: EACCES, open '/home/john/.npm/connect/2.9.0/package/package.json']
npm ERR! errno: 3,
npm ERR! code: 'EACCES',
npm ERR! path: '/home/john/.npm/connect/2.9.0/package/package.json' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! System Linux 3.13.0-24-generic
npm ERR! command "/home/john/.meteor/packages/meteor-tool/.1.0.35.ftql1v++os.linux.x86_64+web.browser+web.cordova/meteor-tool-os.linux.x86_64/dev_bundle/bin/node" "/home/john/.meteor/packages/meteor-tool/.1.0.35.ftql1v++os.linux.x86_64+web.browser+web.cordova/meteor-tool-os.linux.x86_64/dev_bundle/bin/npm" "install" "connect#2.9.0"
npm ERR! cwd /home/john/.meteorite/packages/iron-router/EventedMind/iron-router/05415a8891ea87a00fb1e2388585f2ca5a38e0da/.npm/package-new-iwgw8d
npm ERR! node -v v0.10.29
npm ERR! npm -v 1.4.14
npm ERR! path /home/john/.npm/connect/2.9.0/package/package.json
npm ERR! code EACCES
npm ERR! errno 3
npm ERR! stack Error: EACCES, open '/home/john/.npm/connect/2.9.0/package/package.json'
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/john/.meteorite/packages/iron-router/EventedMind/iron-router/05415a8891ea87a00fb1e2388585f2ca5a38e0da/.npm/package-new-iwgw8d/npm-debug.log
npm ERR! not ok code 0
iron-router: updating npm dependencies -- connect...
npm ERR! Error: EACCES, open '/home/john/.npm/connect/2.9.0/package/package.json'
npm ERR! { [Error: EACCES, open '/home/john/.npm/connect/2.9.0/package/package.json']
npm ERR! errno: 3,
npm ERR! code: 'EACCES',
npm ERR! path: '/home/john/.npm/connect/2.9.0/package/package.json' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! System Linux 3.13.0-24-generic
npm ERR! command "/home/john/.meteor/packages/meteor-tool/.1.0.35.ftql1v++os.linux.x86_64+web.browser+web.cordova/meteor-tool-os.linux.x86_64/dev_bundle/bin/node" "/home/john/.meteor/packages/meteor-tool/.1.0.35.ftql1v++os.linux.x86_64+web.browser+web.cordova/meteor-tool-os.linux.x86_64/dev_bundle/bin/npm" "install" "connect#2.9.0"
npm ERR! cwd /home/john/.meteorite/packages/iron-router/EventedMind/iron-router/05415a8891ea87a00fb1e2388585f2ca5a38e0da/.npm/package-new-19br3u6
npm ERR! node -v v0.10.29
npm ERR! npm -v 1.4.14
npm ERR! path /home/john/.npm/connect/2.9.0/package/package.json
npm ERR! code EACCES
npm ERR! errno 3
npm ERR! stack Error: EACCES, open '/home/john/.npm/connect/2.9.0/package/package.json'
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/john/.meteorite/packages/iron-router/EventedMind/iron-router/05415a8891ea87a00fb1e2388585f2ca5a38e0da/.npm/package-new-19br3u6/npm-debug.log
npm ERR! not ok code 0
=> Errors prevented startup:
While Building package `iron-router`:
error: couldn't install npm package
While Building package `iron-router`:
error: couldn't install npm package
=> Your application has errors. Waiting for file change.
If you run your initial command with user permissions (which is not clear from your answer - please print the command next time), then it needs to be able to access (read, write, execute) other directories with the same permissions.
You can change ownership with:
chown -R $USER <directory>
where in your case <directory> is /home/john and -R is for recursive, so it will change all subdirectories too, which is exactly what you want.
See here for more details.