Jump to content

Have a problem with @squarespace/server

Recommended Posts

Hi!I'm trying to clone the repository of my website in my personal computer. I runned

git clone https://github.com/Squarespace/base-template-npm.git

cd base-template-npm

npm install

npm install -g @squarespace/server

then I tried to run npm start:auth

and I receive:Usage: npm

where is one of: access, adduser, bin, bugs, c, cache, completion, config, ddp, dedupe, deprecate, dist-tag, docs, doctor, edit, explore, get, help, help-search, i, init, install, install-test, it, link, list, ln, login, logout, ls, outdated, owner, pack, ping, prefix, profile, prune, publish, rb, rebuild, repo, restart, root, run, run-script, s, se, search, set, shrinkwrap, star, stars, start, stop, t, team, test, token, tst, un, uninstall, unpublish, unstar, up, update, v, version, view, whoami

npm -h quick help on npm -l display full usage infonpm help search for help on npm help npm involved overview

Specify configs in the ini-formatted file: /Users/claudiamelistonti/.npmrcor on the command line via: npm --key valueConfig info can be viewed via: npm help config

npm@5.6.0 /usr/local/lib/node_modules/npm

Did you mean this? start

So I tried start --verbose

and it answered:Please run "npm install -g @squarespace/server".Visit http://developers.squarespace.com/local-development for more information.npm verb lifecycle npm-base-template@1.0.0~start: unsafe-perm in lifecycle truenpm verb lifecycle npm-base-template@1.0.0~start: PATH: /usr/local/lib/nodemodules/npm/nodemodules/npm-lifecycle/node-gyp-bin:/Users/claudiamelistonti/Desktop/Claudia/website/base-template-npm/nodemodules/.bin:/opt/local/bin:/opt/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbinnpm verb lifecycle npm-base-template@1.0.0~start: CWD: /Users/claudiamelistonti/Desktop/Claudia/website/base-template-npmnpm info lifecycle npm-base-template@1.0.0~start: Failed to exec start scriptnpm verb stack Error: npm-base-template@1.0.0 start:

squarespace setup && (npm run watch & npm run server)

npm verb stack Exit status 1npm verb stack at EventEmitter. (/usr/local/lib/nodemodules/npm/nodemodules/npm-lifecycle/index.js:285:16)npm verb stack at emitTwo (events.js:126:13)npm verb stack at EventEmitter.emit (events.js:214:7)npm verb stack at ChildProcess. (/usr/local/lib/nodemodules/npm/nodemodules/npm-lifecycle/lib/spawn.js:55:14)npm verb stack at emitTwo (events.js:126:13)npm verb stack at ChildProcess.emit (events.js:214:7)npm verb stack at maybeClose (internal/childprocess.js:925:16)npm verb stack at Process.ChildProcess.handle.onexit (internal/childprocess.js:209:5)npm verb pkgid npm-base-template@1.0.0npm verb cwd /Users/claudiamelistonti/Desktop/Claudia/website/base-template-npmnpm verb Darwin 15.6.0npm verb argv "/usr/local/bin/node" "/usr/local/bin/npm" "start" "--verbose" "--auth"npm verb node v8.11.3npm verb npm v5.6.0npm ERR! code ELIFECYCLEnpm ERR! errno 1npm ERR! npm-base-template@1.0.0 start:

squarespace setup && (npm run watch & npm run server)

npm ERR! Exit status 1npm ERR! npm ERR! Failed at the npm-base-template@1.0.0 start script.npm ERR! This is probably not a problem with npm. There is likely additional logging output above.npm verb exit [ 1, true ]

npm ERR! A complete log of this run can be found in:npm ERR! /Users/claudiamelistonti/.npm/logs/2019-07-08T153033676Z-debug.log

What can I do?

Link to comment
  • 3 weeks later...
  • Replies 3
  • Created
  • Last Reply
  • 10 months later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.